// collate::hash example
#include <iostream>
#include <locale>
using namespace std;

int main ()
{
  string myberry = "strawberry";
  string yourberry;

  locale loc;                 // the "C" locale

  const collate<char>& coll = use_facet<collate<char> >(loc);

  long myhash = coll.hash(myberry.data(),myberry.data()+myberry.length());
  
  cout << myhash << endl; 
  
  return 0;
}


